package com.ylxl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ylxl.common.domain.SysUser;
import com.ylxl.entity.China;
import com.ylxl.entity.User;
import com.ylxl.entity.request.QueryUser;
import com.ylxl.entity.request.UserCmdOrMdy;
import com.ylxl.entity.request.UserPasswordMdy;
import com.ylxl.entity.request.UserStatusRequest;

import java.util.List;

/**
 * 用户 业务层
 *
 */
public interface ISysUserService extends IService<User> {
    /**
     * 根据条件分页查询用户列表
     * 
     * @param queryUser 用户信息
     * @return 用户信息集合信息
     */
    List<User> selectUserList(QueryUser queryUser);

    List<China> selectAddress();

    /**
     * 校验用户名称是否唯一
     *
     * @param user 用户信息
     * @return 结果
     */
    boolean checkUserNameUnique(UserCmdOrMdy user);

    int insertUser(UserCmdOrMdy user);

    int updateUser(UserCmdOrMdy user);

    SysUser selectUserByUserName(String userName);

    User selctById(Integer id);

    int deleteByIds(List<Integer> ids);

    int enableOrDisable(UserStatusRequest userStatusRequest);

    int changePassword(UserPasswordMdy userPasswordMdy);
}
